// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import com.nnee.p_pr.p_activity.a.d;
import com.nnee.p_pr.p_activity.p_view.cls_FlingGallery;
import com.nnee.p_pr.p_activity.p_view.cls_pageList;
import java.util.LinkedList;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            MainGridActivity, cr

class cls_q
    implements Runnable
{

	cls_q(cls_MainGridActivity parammaingridactivity)
    {
        a = parammaingridactivity;
        super();
    }

    public void run()
    {
        cls_MainGridActivity.g(a);
        if(cls_MainGridActivity.c(a) != null && cls_MainGridActivity.c(a).size() > 0 && com.nnee.p_pr.p_activity.cls_MainGridActivity.d(a) != null)
        {
            cls_MainGridActivity.b(a, cls_MainGridActivity.c(a).size());
            cls_MainGridActivity cls_MainGridActivity = a;
            int i;
            int j;
            int k;
            if(cls_MainGridActivity.h(a) % cls_MainGridActivity.i(a) > 0)
                i = 1 + cls_MainGridActivity.h(a) / cls_MainGridActivity.i(a);
            else
                i = cls_MainGridActivity.h(a) / cls_MainGridActivity.i(a);
            cls_MainGridActivity.c(maingridactivity, i);
            if(cls_MainGridActivity.j(a) == null)
                cls_MainGridActivity.a(a, new cr(a));
            if(cls_MainGridActivity.k(a) >= cls_MainGridActivity.l(a))
                j = -1 + cls_MainGridActivity.l(a);
            else
                j = cls_MainGridActivity.k(a);
            com.nnee.p_pr.p_activity.cls_MainGridActivity.d(a).a(cls_MainGridActivity.j(a), j);
            if(cls_MainGridActivity.m(a) != null)
            {
                pageList pagelist;
                if(cls_MainGridActivity.n(a) == null)
                    cls_MainGridActivity.a(a, new cls_d(a, cls_MainGridActivity.l(a)));
                else
                    cls_MainGridActivity.n(a).a(cls_MainGridActivity.l(a));
                cls_MainGridActivity.m(a).a(cls_MainGridActivity.n(a));
            }
            pagelist = cls_MainGridActivity.m(a);
            if(cls_MainGridActivity.k(a) >= cls_MainGridActivity.l(a))
                k = -1 + cls_MainGridActivity.l(a);
            else
                k = cls_MainGridActivity.k(a);
            pagelist.a(k);
        }
        a.j();
        cls_MainGridActivity.b(a, false);
    }

    final cls_MainGridActivity a;
}
